-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix @room
mentions crashing in debug builds
#3107
Fix @room
mentions crashing in debug builds
#3107
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3107 +/- ##
===========================================
- Coverage 75.96% 75.96% -0.01%
===========================================
Files 1636 1636
Lines 38618 38617 -1
Branches 7465 7463 -2
===========================================
- Hits 29338 29335 -3
- Misses 5392 5393 +1
- Partials 3888 3889 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
1eb0c9b
to
bc967fe
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the new MentionSpan.Type.EVERYONE
!
Type of change
Content
Skip the room member cache if the
rawValue
(original text) of the mention is@room
.Motivation and context
@room
is not a validUserId
and incorrectly trying to parse it as so caused a crash in debug builds.Tests
With a debug build:
@room
.@room
mention.If it doesn't crash it's fixed.
Tested devices
Checklist